$(function(){
    var idAmostra = $('#idAmostra').val();
    
        jQuery("#gridConsultaAnalise").jqGrid({
		url:"intranet/Consulta/analise/idAmostra/"+idAmostra,
		datatype: "json",
		colNames:['Recomendação', 'Usuário Cadastro', 'Data Cadastro',  'Usuário Atualização', 'Data Atualização', 'Situação'], 
		colModel:[
	   		{name:'descricao',index:'descricao', width:180,align:"center", search: false},
	   		{name:'usuCad',index:'usuCad', width:120, align:"center", search: false},
	   		{name:'dataCadastro', index:'dataCadastro', width:80, align:"center",
                            sorttype:'date', formatter:'date', datefmt:'d/m/Y', search: false},
	   		{name:'usuAtu',index:'usuAtu', width:120, align:"center", search: false},
	   		{name:'dataAtualizacao',index:'dataAtualizacao', width:80, align:"center", 
                            sorttype:'date', formatter:'date', datefmt:'d/m/Y', search: false},	
	   		{name:'eAtivo',index:'eAtivo', width:50, align:"center", search: false}
	   	],
   		//rowNum:20,
   		//rowList:[10,20,30],
   		//shrinkToFit: false, 
   		scroll:true,
                heigth: '300%',
   		width: 1000,
   		pager: '#navConsultaAnalise',
   		sortname: 'descricao',
   		sortorder: "ASC",
   		multiselect: false,
   		viewrecords: true,
   		loadonce:true,
   		ignoreCase:true,
   		caption:"Amostra: "+idAmostra,
   		grouping:false,
		
		//footerrow: true,
		userdataOnFooter: true
	});
});
jQuery("#gridConsultaAnalise").jqGrid('navGrid','#gridConsultaAnalise',{add:false,edit:false,del:false});
